package users;


import book.BookList;
import operation.IOperation;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-02-28
 * Time: 23:59
 */
public abstract class User {
    protected IOperation[] iOperations;
    protected String name;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
   public void doOperation(int choice,BookList bookList){
       this.iOperations[choice].work(bookList);
   }
}
